home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 February
/
Macworld (1999-02).dmg
/
Serious Demos
/
XTension demo
/
Scripts
/
Time-Date Examples.On
< prev
next >
Wrap
Text File
|
1998-07-28
|
835b
|
33 lines
-- This is a collection of example script statements
-- Few of these scripts are complete in themselves,
-- but rather are just syntactical examples.
-- Test this script to see the results...
write log "the current date is " & (date string for (current date))
write log "the current time is " & (time string for (current time))
if time of (current date) > 12 * hours + 28 * minutes then
write log "it is after 12:28PM"
else
write log "it is before 12:28PM"
end if
if weekday of (current date) = Sunday then
write log "it's Sunday !"
end if
if month of (current date) = August then
write log "it's August already!"
end if
if year of (current date) < 2000 then
write log "it's not the millenium yet"
else
write log "it's after the millenium!"
end if
write log "value of LRlamp#2 is " & (value of "LRlamp#2") as string